﻿using HardStyle.SimpleEventBus;
using TestEventBus.Events;

namespace TestEventBus.EventHandles
{
    public class MessageHandle : ISimpleEventHandle<MessageEvent>
    {
        public Task Handle(MessageEvent e, CancellationToken cancellationToken)
        {
            Console.WriteLine("收到消息" + e.Message);
            return Task.CompletedTask;
        }
    }
}